{{partial "title-header"}}
<div class="content">
{{item-menu menus=menus action="menuClicked"}}

{{#if trueDirty}}
          <a {{action "emptyClick"}} href="#" class="pure-menu-link piao-you" title="有更改未保存">
              <i class="fa fa-floppy-o"></i>
          </a>
{{/if}}

<form class="pure-form" {{action "save" on="submit"}}>
<table class="user-detail pure-table pure-table-bordered hundred-width topm-ten">
    <thead>
        <tr>
            <th></th>
            <th></th>
        </tr>
    </thead>
    <tbody>
      <tr>
        <td>用户名</td>
        <td>
          {{input value=model.name type="text" placeholder="用户名" class="pure-input-1"}}
        </td>
      </tr>
      <tr>
        <td>email</td>
        <td>
          {{input value=model.email type="email" placeholder="Email" class="pure-input-1"}}
        </td>
      </tr>
      <tr>
        <td>手机号码</td>
        <td>
          {{input value=model.mobile type="text" placeholder="手机号码" class="pure-input-1"}}
        </td>
      </tr>
      <tr>
        <td>启用</td>
        <td>
          {{input checked=model.enabled type="checkbox"}}
        </td>
      </tr>
      <tr>
        <td>等级</td>
        <td>
          {{number-field model=model min=0 max=100}}
        </td>
      </tr>
      <tr>
        <td>角色</td>
        <td>
          {{multiple-selector action="roleChanged" selected=model.roles tobeselect=myGlobals.roles}}
        </td>
      </tr>
    </tbody>
  </table>
  <div>
    {{submit-btn formState=formState}}
  </div>
</form>
</div>
